﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _11.@lock
{
    class Program
    {
        static void Main(string[] args)
        {
            object o = "hehe";
            lock (o) //等同于Java的synchronized
            {

            }

            //using ()
            //{

            //}
        }
    }
}
